//
//  FileOperator.h
//  遍历文件的工具
//
//  Created by Vescky on 12-12-18.
//  Copyright (c) 2012年 Vescky. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface FileOperator : NSObject


+ (id)shareFileOperator;

//遍历指定目录，返回一个数组array:{folderArray,fileArray}
+ (NSMutableArray*)ergodicFolder:(NSString*)_folder;

+ (NSMutableArray*)ergodicFolder:(NSString*)_folder withExtension:(NSString*)extension;

+ (bool)replaceFile:(NSString*)oldFile withNewFile:(NSString*)newFile;

//遍历目录返回数组，即文件名列表
- (NSMutableArray *)fileErgodicor:(NSString *)path;
- (NSMutableArray*)fileErgodicor:(NSString*)_folder withExtension:(NSString*)extension;

- (NSMutableArray*)deleteSystemHiddenFileFromList:(NSMutableArray*)nameList;

- (NSMutableArray*)deleteFileWithoutExtensionFromList:(NSMutableArray*)nameList;

- (bool)cleanFolder:(NSString*)path ;

- (void)cleanOutputFolders;

- (bool)synDownloadZipPackage:(NSString*)urlString;

- (bool)synDownloadCertsPackage:(NSString*)urlString;

//遍历当前目录，返回一个列表
- (NSMutableArray*)getListOfPath:(NSString*)gPath isDir:(bool)dir;

- (NSString*)getIconPathFromZip;

@end
